package com.example.lesson072.mapper;

import com.example.lesson072.pojo.User;

import java.util.List;

/**
 * @program: lesson07-2
 * @description: 用户表Dao
 * @author: 蓝建平
 * @create: 2020-09-18 22:48
 **/
public interface UserMapper {

    List<User> findAll();
    User findById(int id);
    void save(User user);
    void update(User user);
    void delete(int id);
    List<User> findByCondition(User user);
    void update2(User user);
    List<User> findByIds(int[] ids);

    List<User> findAll2();

    List<User> findAllUserAndRole();
}
